home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************/
- /* */
- /* TurboCAD for Windows */
- /* Copyright (c) 1993 - 2001 */
- /* International Microcomputer Software, Inc. */
- /* (IMSI) */
- /* All rights reserved. */
- /* */
- /******************************************************************/
-
- // AddProperty.cpp : implementation file
- //
-
- #include "stdafx.h"
- #include "LTSample.h"
- #include "AddProperty.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CAddProperty dialog
-
-
- CAddProperty::CAddProperty(CWnd* pParent /*=NULL*/)
- : CDialog(CAddProperty::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CAddProperty)
- m_cstrName = _T("");
- m_cstrType = _T("");
- m_bReadOnly = FALSE;
- //}}AFX_DATA_INIT
- }
-
-
- void CAddProperty::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CAddProperty)
- DDX_Text(pDX, IDC_NAME, m_cstrName);
- DDX_CBString(pDX, IDC_PROPERTYPE, m_cstrType);
- DDX_Check(pDX, IDC_READONLY, m_bReadOnly);
- //}}AFX_DATA_MAP
- }
-
-
- BEGIN_MESSAGE_MAP(CAddProperty, CDialog)
- //{{AFX_MSG_MAP(CAddProperty)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CAddProperty message handlers
-
- void CAddProperty::OnOK()
- {
- UpdateData();
- if (m_cstrName.IsEmpty())
- {
- AfxMessageBox(IDS_PROPERTYNAMEISNEED);
- return;
- }
- if (m_cstrType.IsEmpty())
- {
- AfxMessageBox(IDS_PROPERTYTYPEISNEED);
- return;
- }
-
- CDialog::OnOK();
- }
-